import Vue from 'vue'
import Router from 'vue-router'
import index from './views/index.vue'


Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'index',
      component: index,
      meta:{
        title:'收款功能',
        requireAuth:true
      }
    },
    {
      path: '/cardEdit',
      name: 'cardEdit',
      component: () => import(/* 卡管理 */ '@/views/cardEdit/index.vue'),
      meta:{
        title:'卡管理',
        // requireAuth:true
      }
    },
    {
      path: '/cardList',
      name: 'cardList',
      component: () => import(/* 卡列表 */ '@/views/cardList/index.vue'),
      meta:{
        title:'卡列表',
        // requireAuth:true
      }
    },
    {
      path: '/addCard',
      name: 'addCard',
      component: () => import(/* 新生下单 */ '@/views/addCard/index.vue'),
      meta:{
        title:'添加信用卡',
        requireAuth:true
      }
    },
    {
      path: '/index2',
      name: 'index2',
      component: () => import(/* 新生下单 */ '@/views/index2.vue'),
      meta:{
        title:'商户收款',
        requireAuth:true
      }
    },
    {
      path: '/xs/Cjpassageway',
      name: '/xs/Cjpassageway',
      component: () => import(/* 新生下单 */ '@/views/xs/Cjpassageway.vue'),
      meta:{
        title:'确认订单',
        requireAuth:true
      }
    },
    {
      path: '/xs/confirmOrder',
      name: '/xs/confirmOrder',
      component: () => import(/* 新生确认订单: "about" */ '@/views/xs/confirmOrder.vue'),
      meta:{
        title:'确认订单',
        requireAuth:true
      }
    },
    {
      path: '/cj/Cjpassageway',
      name: '/cj/Cjpassageway',
      component: () => import(/* 下单 */ '@/views/cj/Cjpassageway.vue'),
      meta:{
        title:'确认订单',
        requireAuth:true
      }
    },
    {
      path: '/cj/ktxyzf',
      name: '/cj/ktxyzf',
      component: () => import(/* 签约 */ '@/views/cj/ktxyzf.vue'),
      meta:{
        title:'签约',
        requireAuth:true
      }
    },
    {
      path: '/cj/confirmOrder',
      name: '/cj/confirmOrder',
      component: () => import(/* 确认订单: "about" */ '@/views/cj/confirmOrder.vue'),
      meta:{
        title:'确认订单',
        requireAuth:true
      }
    },
    {
      path: '/cj/success',
      name: '/cj/success',
      component: () => import(/* 畅捷通道: "about" */ '@/views/cj/success.vue'),
      meta:{
        title:'支付成功',
        requireAuth:true
      }
    },
    {
      path: '/cj/error',
      name: '/cj/error',
      component: () => import(/* 畅捷通道: "about" */ '@/views/cj/error.vue'),
      meta:{
        title:'支付失败',
        requireAuth:true
      }
    },
    {
      path: '/pay',
      name: 'pay',
      component: () => import(/* webpackChunkName: "about" */ './views/pay.vue'),
      meta:{
        title:'确认订单',
        requireAuth:true
      }
    },
    {    //M通道走
      path: '/yunMpay',
      name: 'yunMpay',
      component: () => import(/* webpackChunkName: "about" */ './views/yunMpay.vue'),
      meta:{
        title:'确认订单',
        requireAuth:true
      }
    },
    {
      path: '/queren',
      name: 'queren',
      component: () => import(/* webpackChunkName: "about" */ './views/queren.vue'),
      meta:{
        title:'确认订单',
        requireAuth:true
      }
      
    },
    
    {
      path: '/suok',
      name: 'suok',
      component: () => import(/* webpackChunkName: "about" */ './views/suok.vue'),
      meta:{
        title:'提交成功',
        requireAuth:true
      }
    },
    {
      path: '/CollectionRecords',
      name: 'CollectionRecords',
      component: () => import(/* webpackChunkName: "about" */ './views/CollectionRecords.vue'),
      meta:{
        title:'收款记录',
        requireAuth:true
      }
    },
    {
      path: '/qrcode',
      name: 'qrcode',
      component: () => import(/* webpackChunkName: "about" */ './views/qrcode.vue'),
      meta:{
        title:'收款二维码',
        requireAuth:true
      }
    },
  ]
})
